﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace peonwar
{
    class ResearchEleven : Research
    {

        bool used;
        public ResearchEleven(Vector2 _position, Texture2D _texture, User au)
            : base(_position, _texture, au)
        {
            name = GameData.GameString[191];
            description = GameData.GameString[192];
            time = 225;
            timer = new Timer(time);
            used = false;
        }

        public override void competance()
        {
            if (!used)
            {
                if (associatedUser.game.CurrentSession == Session.OnlineHOST)
                    associatedUser.game.Network_HostServer.Send(RequestType.Game_ResearchEleven, new Object());
                else
                    associatedUser.game.Network_Client.Send(RequestType.Game_ResearchEleven, new Object());
                associatedUser.baseBonus = true;
                used = true;
            }
        }
    }
}
